.panel {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    .panel-heading {
        padding: 10px 20px;
        button {
            border: none;
            background-color: transparent;
            outline: none;
            &:hover {
                background-color: rgba(158, 158, 158, 0.2);
                color: #23527c;
            }
        }
    }
    .panel-body {
        .progress {
            position: relative;
            .progress-label-right {
                position: absolute;
                top: 0;
                right: 5px;
                color: #555;
            }
            .progress-label-center {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                color: #000;
            }
        }
        .table.table-inline-edit {
            table-layout: fixed;
            thead {
                tr {
                    th {
                        font-size: 13px;
                        padding: 3px 5px;
                        .label-tooltip {
                            float: none;
                            display: inline-block;
                            margin-top: 0;
                            margin-left: 5px;
                        }
                    }
                }
            }
            tbody {
                tr {
                    td {
                        padding: 3px 5px;
                        font-size: 13px;
                        text-overflow: ellipsis;
                        overflow: hidden;
                        white-space: nowrap;
                        input {
                            padding: 0 5px;
                            outline: none;
                            width: 95%;
                            background-color: #fcfcfd;
                            border: 1px solid #cddade;
                            border-radius: 4px;
                            &:focus {
                                border-color: #66afe9;
                            }
                        }
                        a {
                            cursor: pointer;
                            color: #888;
                        }
                        &.has-error {
                            input {
                                border-color: #a94442;
                            }
                            &:after {
                                float: right;
                                content: '\f12a';
                                font-size: 14px;
                                font-family: 'FontAwesome';
                                color: #a94442;
                            }
                        }
                    }
                }
            }
        }
        dd {
            word-wrap: break-word;
            word-break: break-all;
            margin-bottom: 5px;
            ul {
                margin: 0;
            }
            table {
                tr {
                    td {
                        font-size: 13px;
                        vertical-align: top;
                        padding: 0 5px;
                        &:last-child {
                            font-weight: bold;
                            text-align: right;
                        }
                    }
                }
            }
        }
        .nav-tabs {
            li {
                a {
                    font-size: 14px;
                    padding: 10px 15px;
                    border-radius: 2px;
                    span.label {
                        padding: 2px 5px;
                    }
                }
            }
        }
        .tab-content {
            .tab-pane {
                padding: 15px 20px;
            }
        }
        .label-tooltip {
            padding: 0 5px;
            font-size: 12px;
            color: #2cb6d4;
            background-color: #d2f1f7;
            border-radius: 2px;
            margin-top: 3px;
            float: right;
        }
    }
}

.panel-list {
    box-shadow: none;
    .form-search {
        margin-bottom: 10px;
        .input-group {
            .form-control:first-child {
                border-top-right-radius: 0;
                border-bottom-right-radius: 0;
            }
            .input-group-btn:last-child > .btn {
                border-top-left-radius: 0;
                border-bottom-left-radius: 0
            }
        }
        .btn {
            border-radius: 2px;
            margin-bottom: 5px;
        }
        .form-control {
            box-shadow: none;
            border-radius: 2px;
            margin-right: 10px;
            margin-bottom: 5px;
        }
        .date-group-left {
            position: relative;
            display: inline-block;
            &:before {
                position: absolute;
                line-height: 34px;
                left: 8px;
                content: '\f073';
                font-family: 'FontAwesome';
            }
            .form-control {
                max-width: 180px;
                padding-left: 25px;
                margin-right: 0;
                border-right: none;
            }
        }
        .date-group-right {
            position: relative;
            display: inline-block;
            &:before {
                position: absolute;
                line-height: 34px;
                left: -19px;
                content: '---';
            }
            .form-control {
                max-width: 160px;
                margin-left: -10px;
                border-left: none;
            }
        }
    }
    .loading {
        margin-left: auto;
        margin-right: auto;
    }
    .table {
        table-layout: fixed;
        margin-bottom: 15px;
        border: 1px solid #eee;
        thead {
            tr {
                th {
                    background-color: #f4f7f8;
                    border-bottom: 1px solid #eee;
                    font-size: 0.9em;
                }
            }
        }
        tbody {
            tr {
                td {
                    word-wrap: break-word;
                    word-break: break-all;
                    padding: 5px 8px;
                    ul {
                        margin: 0;
                    }
                    .toolbox {
                        position: absolute;
                        right: 0;
                        top: 50%;
                        transform: translateY(-50%);
                        padding: 0 10px;
                        background-color: #f5f5f5;
                        display: none;
                        cursor: pointer;
                        > a {
                            color: #23527c;
                            + a {
                                margin-left: 8px;
                            }
                        }
                        &.tb-loading {
                            display: block;
                            background-color: #fff;
                            .loading-sm {
                                display: inline-block;
                                vertical-align: -15%;
                            }
                        }
                    }
                    .progress {
                        margin: 0 5px;
                    }
                    &.row-head {
                        word-wrap: normal;
                        word-break: normal;
                        position: relative;
                        > a, > span {
                            outline: none;
                            white-space: nowrap;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            display: block;
                        }
                    }
                    &.more-action {
                        > div {
                            > a {
                                cursor: pointer;
                                + ul {
                                    left: -120px;
                                    li{
                                        >a{
                                            cursor: pointer;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                &:hover {
                    td {
                        .toolbox {
                            display: block;
                            &.tb-loading {
                                background-color: #f5f5f5;
                            }
                        }
                    }
                }
            }
        }
    }
}

.panel-form-footer {
    position: fixed;
    bottom: 0;
    left: 180px;
    right: 0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    z-index: 99;
    background-color: #fff;
    @include transition();
    .btn.btn-default {
        border-color: #ccc;
    }
}

.hide-nav {
    .panel-form-footer {
        left: 58px;
    }
}
